import React, { PureComponent } from 'react';
import TrimSpan from './TrimSpan';
import { Tooltip } from 'antd';

export default class MerchantTag extends PureComponent {
  render() {
    const { length = 13, text } = this.props;
    let str = '';
    if (text) str = text.split(',').map(item => `【${item}】`).join('');
    return <TrimSpan text={str} length={length} />
  }
}